import { createRouter, createWebHistory } from 'vue-router'
import ConfigList from '../views/ConfigList.vue'
import FailedMessages from '../views/FailedMessages.vue'

const routes = [
  {
    path: '/',
    redirect: '/configs'
  },
  {
    path: '/configs',
    name: 'ConfigList',
    component: ConfigList
  },
  {
    path: '/failed-messages',
    name: 'FailedMessages',
    component: FailedMessages
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router